import asyncio
from bilibili_api import live
from bilibili_api import dynamic, Credential

credential = Credential(
    sessdata="6b1a13d7%2C1758939876%2C8951f%2A31CjCnuNCNztCftrPkFjag8k47dIuQZ-ut62XXcemFADFMuB25dQCJqC6nM4LKkTq7fpYSVlo0ZFNkVmVXcWhlcXhXS3hCOXZBYjYyVXdJZ0ZSNllfWFJ3T3VBZEVfUkxxNFJrNU4xd1BZNVAxcEVOc3JFUUNubV8tc045c0ZsaXR2NkMtVjFQZU1nIIEC",
    bili_jct="0fe3dcb51de2f49bea0458875ba9c957",
    buvid3="21386F8E-E6CB-6015-D6CB-63F5C751BB9751434infoc",
    dedeuserid="3546869426817357")
if __name__ == "__main__":
    async def main():
        res01 = None
        try:
            res01 = await live.get_live_followers_info(credential=credential)
            """
            res01['rooms'][10]['roomid'] 直播间号
            res01['rooms'][10]['uid'] 主播id
            res01['rooms'][10]['uname'] 主播名
            res01['rooms'][10]['title'] 直播标题
            res01['rooms'][10]['live_tag_name'] 直播tag
            res01['rooms'][10]['live_time'] 开播时间
            res01['rooms'][10]['area'] 直播分区int
            res01['rooms'][10]['area_name'] 直播分区 电子竞技
            res01['rooms'][10]['area_v2_name'] 直播分区 英雄联盟
            res01['rooms'][10]['area_v2_parent_name'] 直播分区 网游
            """
            # res01 = await live.get_unlive_followers_info(credential=credential)
            print(res01)
        except KeyboardInterrupt:
            pass

    asyncio.run(main())